/*
 * @(#)IKAnalyzer.java, 2024/1/10 10:34
 *
 * Copyright (c) 2018-2024, 四川蜀天梦图数据科技有限公司.
 * All rights reserved.
 */
package com.zhoufan.lucene.ik;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.util.AttributeFactory;

/**
 * IKAnalyzer
 *
 * @author fantazy
 * @version 1.0, 2024年01月10日
 */
public final class IKAnalyzer extends Analyzer
{
    @Override
    protected final TokenStreamComponents createComponents(String fieldName)
    {
        Tokenizer _IKTokenizer = new IKTokenizer(AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY,false);
        return new TokenStreamComponents(_IKTokenizer);
    }
}
